package flst.ipiweb.proxy;

import flst.ipiweb.process.ClientProcess;
import flst.ipiweb.transverse.Client;
import flst.ipiweb.transverse.IPIWebException;

public class ClientProxy {

	private ClientProcess pcli;
	private boolean droits = false;
	
	public ClientProxy() {
		pcli = new ClientProcess();
	}

	public boolean getDroits() {
		return droits;
	}

	public void setDroits(boolean droits) {
		this.droits = droits;
	}
	
	public Client GetClientById(int id) throws IPIWebException{
		if(droits){
			return pcli.GetClientById(id);
		}
		else{
			return null;
		}
	}
	
	
}
